package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.entity.News;
import com.xca.znb.model.imodel.ISchoolFragment;

import java.util.List;

public class SchoolFragmentImpl implements ISchoolFragment {
    private UserDAO userDAO ;

    public SchoolFragmentImpl(Context context){
        userDAO = new UserDAO(context);
    }

    @Override
    public List<News> getNewsByType(String type) {
        return userDAO.getNewsByType(type);
    }
}
